/**
 * 
 */
package id.web.faisalabdillah.xtimesheet.web.ctrl;

import id.web.faisalabdillah.xtimesheet.web.model.HolidaysModel;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author faitz
 *
 */
@Controller
@RequestMapping("/admin/holidays")
public class HolidaysManageCtrl {
	
	@RequestMapping({"/add","/"})
	public String add(Model model){
		model.addAttribute(new HolidaysModel());
		return "admin/holiday/holiday-add";
	}
	
	@RequestMapping("/list")
	public String list(){
		return "admin/holiday/holiday-list";
	}

}
